Python Lab
0%
From your first line of code to your own lab tools

Learn Python by building real lab software

Short lessons, real code that runs on this Mac, and exercises that check themselves. Every example comes from the bench: dilutions, DNA sequences, plate readers, qPCR, growth curves and FASTA files — ending with tools like the ones in your Toolbox.

The course

How it works

1

Read a short idea

Each lesson explains one thing, with examples you can run and change.

2

Write real Python

The editor runs your code with the same Python your tools use, including pandas and matplotlib.

3

Check, then build

Press Check to have your solution tested. Stuck? Hints, the solution, or ask the tutor.

✓ Completed

Example

      
Your task
lesson.py
Press ▶ Run to see what your code prints.
Capstones

Build real tools

Bigger programs that combine everything: each one is a small, working piece of lab software you could keep using. Your code is tested on the real example data files.

playground.py
Anything goes here. Your code is saved as you type.

If your program uses input(), type its answers here, one per line.

Reference

Cheat sheet

The Python you'll use every day, on one page. Press Try it on any snippet to open it in the Playground.